# CSRF_ENABLED = True
# SECRET_KEY = 'root'

import os
class Config:
    CSRF_ENABLED = True
    SECRET_KEY = 'root'

    SQLALCHEMY_TRACK_MODIFICATIONS = False

    MAIL_SERVER = 'smtp.126.com',
    MAIL_PORT = 25,
    MAIL_USE_TLS = True,
    MAIL_USE_SSL = False,
    MAIL_USERNAME = 'WangChaoAnHui@126.com',
    MAIL_PASSWORD = 'KQAFNJYKTFSBAHGE',
    MAIL_DEFAULT_SENDER = ('cw', 'WangChaoAnHui@126.com'),
    MAIL_DEBUG = True

    @classmethod
    def init_app(cls, app):
        app.config.from_object(cls)


class StuManSysConfig(Config):
    # SECRET_KEY = os.environ.get('SECRET_KEY') or 'your-secret-key-here'
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:root@localhost/studentsdb'
    SQLALCHEMY_TRACK_MODIFICATIONS = False
